//
//  RegisterViewController.swift
//  PandaSwift
//
//  Created by 余意 on 2017/1/18.
//  Copyright © 2017年 余意. All rights reserved.
//

import UIKit

class RegisterViewController: UIViewController {
    
    
    var age:Int = 18{
        willSet{
            print("willSet  \(newValue)")
        }
        
        didSet{
            print("disSet   \(oldValue)")
        }
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        self.view.backgroundColor = BACKGROUND_COLOR
        self.title = "注册"
        
        age = 10;
        print("值  \(age)")
        age = 100
        print("值  \(age)")
        
        age = 200
        print("值  \(age)")
        age = 18
        print("值  \(age)")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
